home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
libelfutil
/
xlate_pro_disk_header.z
/
xlate_pro_disk_header
Wrap
Text File
|
1998-10-30
|
12KB
|
198 lines
XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____DDDDIIIISSSSKKKK____HHHHEEEEAAAADDDDEEEERRRR((((3333EEEE)))) XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____DDDDIIIISSSSKKKK____HHHHEEEEAAAADDDDEEEERRRR((((3333EEEE))))
NNNNAAAAMMMMEEEE
_xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______hhhh_eeee_aaaa_dddd_eeee_rrrr - get translation byte stream block count
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_eeee_llll_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_iiii_bbbb_eeee_llll_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_dddd_wwww_aaaa_rrrr_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_iiii_bbbb_dddd_wwww_aaaa_rrrr_ffff_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_cccc_mmmm_pppp_llll_rrrr_ssss_////_xxxx_llll_aaaa_tttt_eeee_...._hhhh_>>>>
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_iiii_bbbb_XXXX_llll_aaaa_tttt_eeee_...._hhhh_>>>>
_iiii_nnnn_tttt _xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______hhhh_eeee_aaaa_dddd_eeee_rrrr_((((_xxxx_llll_aaaa_tttt_eeee______tttt_aaaa_bbbb_llll_eeee______pppp_rrrr_oooo _pppp_rrrr_oooo______tttt_aaaa_bbbb_llll_eeee______pppp_tttt_rrrr_,,,,
_iiii_nnnn_tttt _ssss_tttt_aaaa_nnnn_dddd_aaaa_rrrr_dddd______oooo_rrrr______dddd_eeee_bbbb_uuuu_gggg_,,,,
_EEEE_llll_ffff_6666_4444______XXXX_wwww_oooo_rrrr_dddd _****_tttt_oooo_tttt_aaaa_llll______mmmm_eeee_mmmm_oooo_rrrr_yyyy______rrrr_eeee_qqqq_uuuu_iiii_rrrr_eeee_dddd_,,,,
_EEEE_llll_ffff_6666_4444______XXXX_wwww_oooo_rrrr_dddd _****_nnnn_uuuu_mmmm_bbbb_eeee_rrrr______oooo_ffff______bbbb_llll_oooo_cccc_kkkk_ssss
_))))_;;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This function gets the total size and the number-of-blocks of either the
standard or debug stream of data. Following this one calls
_x_l_a_t_e__p_r_o__d_i_s_k__b_l_o_c_k number-of-blocks times to get pointers the blocks of
actual data bytes of the byte stream. The library does not write
anything to disk. It is up to the application calling the library to
write the information to disk (or to do whatever else is appropriate with
the byte stream).
_x_l_a_t_e__p_r_o__d_i_s_k__h_e_a_d_e_r gets the size of the net translation table data
stream thru the pointer arguments.
If there are no translation ranges supplied but there is register
information supplied (or if there is a consumer translation table
supplied) an output stream may have non-zero length and block count but
such a stream is surely useless.
If there are no translations the block count and length will be returned
as 0 (see below).
The arguments are a as follows.
_p_r_o__t_a_b_l_e__p_t_r must be a valid open producer translate table handle.
_s_t_a_n_d_a_r_d__o_r__d_e_b_u_g specifies whether the byte stream returned by calls to
_x_l_a_t_e__p_r_o__d_i_s_k__n_e_x_t__b_l_o_c_k is the standard or debug stream. Call with
_X_L_A_T_E__P_R_O__S_T_A_N_D_A_R_D__S_E_T_U_P to request the standard stream. Call with
_X_L_A_T_E__P_R_O__D_E_B_U_G__S_E_T_U_P to request the debug stream.
_t_o_t_a_l__m_e_m_o_r_y__r_e_q_u_i_r_e_d
The pointed at memory is set to the total number of bytes in the
translation byte stream. If there is no translation data the
pointed at memory will be set to 0.
PPPPaaaaggggeeee 1111
XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____DDDDIIIISSSSKKKK____HHHHEEEEAAAADDDDEEEERRRR((((3333EEEE)))) XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____DDDDIIIISSSSKKKK____HHHHEEEEAAAADDDDEEEERRRR((((3333EEEE))))
_n_u_m_b_e_r__o_f__b_l_o_c_k_s
The pointed at memory is set to the number of calls of
_x_l_a_t_e__p_r_o__d_i_s_k__n_e_x_t__b_l_o_c_k required to get pointers to the pieces
of the byte stream. If there is no translation data the pointed
at memory will be set to 0.
An example showing typical use of these functions follows.
_rrrr_eeee_ssss _==== _xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______hhhh_eeee_aaaa_dddd_eeee_rrrr_((((_pppp_rrrr_oooo______tttt_aaaa_bbbb_,,,,
_XXXX_LLLL_AAAA_TTTT_EEEE______PPPP_RRRR_OOOO______SSSS_TTTT_AAAA_NNNN_DDDD_AAAA_RRRR_DDDD______SSSS_EEEE_TTTT_UUUU_PPPP_,,,,
_&&&&_tttt_oooo_tttt_mmmm_eeee_mmmm_,,,,_&&&&_bbbb_llll_kkkk______cccc_tttt_))))_;;;;
_ffff_oooo_rrrr_(((( _iiii _==== _0000_;;;; _iiii _<<<< _bbbb_llll_kkkk______cccc_tttt_;;;; _++++_++++_iiii _))))
_{{{{
_rrrr_eeee_ssss _==== _xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______nnnn_eeee_xxxx_tttt______bbbb_llll_oooo_cccc_kkkk_((((_pppp_rrrr_oooo______tttt_aaaa_bbbb_,,,,
_&&&&_dddd_aaaa_tttt_aaaa_pppp_,,,,_&&&&_dddd_aaaa_tttt_aaaa______ssss_iiii_zzzz_eeee_))))_;;;;
_////_**** _dddd_oooo _ssss_oooo_mmmm_eeee_tttt_hhhh_iiii_nnnn_gggg _wwww_iiii_tttt_hhhh _tttt_hhhh_eeee _bbbb_yyyy_tttt_eeee_ssss_****_////
_ffff_rrrr_eeee_eeee_((((_dddd_aaaa_tttt_aaaa_pppp_))))_;;;;
_}}}}
_rrrr_eeee_ssss _==== _xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______hhhh_eeee_aaaa_dddd_eeee_rrrr_((((_pppp_rrrr_oooo______tttt_aaaa_bbbb_,,,,
_XXXX_LLLL_AAAA_TTTT_EEEE______PPPP_RRRR_OOOO______DDDD_EEEE_BBBB_UUUU_GGGG______SSSS_EEEE_TTTT_UUUU_PPPP
_&&&&_tttt_oooo_tttt_mmmm_eeee_mmmm_dddd_eeee_bbbb_uuuu_gggg_,,,,_&&&&_bbbb_llll_kkkk______cccc_tttt_dddd_eeee_bbbb_uuuu_gggg_))))_;;;;
_ffff_oooo_rrrr_(((( _iiii _==== _0000_;;;; _iiii _<<<< _bbbb_llll_kkkk______cccc_tttt_dddd_eeee_bbbb_uuuu_gggg_;;;; _++++_++++_iiii _))))
_{{{{
_rrrr_eeee_ssss _==== _xxxx_llll_aaaa_tttt_eeee______pppp_rrrr_oooo______dddd_iiii_ssss_kkkk______nnnn_eeee_xxxx_tttt______bbbb_llll_oooo_cccc_kkkk_((((_pppp_rrrr_oooo______tttt_aaaa_bbbb_,,,,
_&&&&_dddd_aaaa_tttt_aaaa_pppp_,,,,_&&&&_dddd_aaaa_tttt_aaaa______ssss_iiii_zzzz_eeee_))))_;;;;
_////_**** _dddd_oooo _ssss_oooo_mmmm_eeee_tttt_hhhh_iiii_nnnn_gggg _wwww_iiii_tttt_hhhh _tttt_hhhh_eeee _bbbb_yyyy_tttt_eeee_ssss_****_////
_ffff_rrrr_eeee_eeee_((((_dddd_aaaa_tttt_aaaa_pppp_))))_;;;;
_}}}}
FFFFIIIILLLLEEEESSSS
/usr/include/libXlate.h
/usr/include/cmplrs/xlate.h
/usr/include/elf.h
/usr/include/dwarf.h
/usr/include/libdwarf.h
/usr/lib/libelfutil.a
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
This returns XLATE_TB_STATUS_NO_ERROR (0) on success. In case of error,
a negative number is returned indicating the error. In case of error
nothing is returned thru the pointer arguments.
Error returns possible are:
_X_L_A_T_E__T_B__S_T_A_T_U_S__I_N_V_A_L_I_D__T_A_B_L_E
means that that the _t_a_b_l_e is not a valid open producer handle.
_X_L_A_T_E__T_B__S_T_A_T_U_S__P_R_O__R_E_Q__I_N_V_A_L_I_D
means that the _s_t_a_n_d_a_r_d__o_r__d_e_b_u_g argument is neither
_X_L_A_T_E__P_R_O__S_T_A_N_D_A_R_D__S_E_T_U_P nor _X_L_A_T_E__P_R_O__D_E_B_U_G__S_E_T_U_P.
PPPPaaaaggggeeee 2222
XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____DDDDIIIISSSSKKKK____HHHHEEEEAAAADDDDEEEERRRR((((3333EEEE)))) XXXXLLLLAAAATTTTEEEE____PPPPRRRROOOO____DDDDIIIISSSSKKKK____HHHHEEEEAAAADDDDEEEERRRR((((3333EEEE))))
SSSSEEEEEEEE AAAALLLLSSSSOOOO
libelfutil(5), xlate(4), xlate_pro_init(3e), xlate_pro_finish(3e),
xlate_pro_disk_next_block(3e),
PPPPaaaaggggeeee 3333